import Vue from 'vue'
import Router from 'vue-router'
Vue.use(Router)

export default new Router({
  routes: [
    {
      path: "/",
      name: "培训中心",
      component: function(resolve) {
        require(["@/components/training/list0.vue"], resolve);
      }
    },
    {
      path: "/list0_2",
      name: "在线培训",
      component: function(resolve) {
        require(["@/components/training/list0_2.vue"], resolve);
      }
    },
    {
      path: "/list0_1",
      name: "在线培训",
      component: function(resolve) {
        require(["@/components/training/list0_1.vue"], resolve);
      }
    },
    {
      path: "/list0",
      name: "在线考试",
      component: function (resolve) {
        require(["@/components/training/list0.vue"], resolve);
      }
    },
    {
      path: "/list1",
      name: "在线考试",
      component: function(resolve) {
        require(["@/components/training/list1.vue"], resolve);
      }
    },
    {
      path: "/list2",
      name: "培训班",
      component: function(resolve) {
        require(["@/components/training/list2.vue"], resolve);
      }
    },
    {
      path: "/list3",
      name: "培训记录",
      component: function (resolve) {
        require(["@/components/training/list3.vue"], resolve);
      }
    },
    {
      path: "/list3_1",
      name: "子认证",
      component: function (resolve) {
        require(["@/components/training/list3_1.vue"], resolve);
      }
    },
    {
      path: "/testStart",
      name: "在线考试",
      component: function(resolve) {
        require(["@/components/training/testStart.vue"], resolve);
      }
    },
    {
      path: "/test",
      name: "模拟考试",
      component: function(resolve) {
        require(["@/components/training/test.vue"], resolve);
      }
    },
    {
      path: "/testReport",
      name: "测试报告",
      component: function(resolve) {
        require(["@/components/training/testReport.vue"], resolve);
      }
    },
    {
      path: "/sign",
      name: "培训班报名处理",
      component: function(resolve) {
        require(["@/components/training/sign.vue"], resolve);
      }
    }
  ]
});